package com.mengfou.appserver.app.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author 梦否 on 2024/1/6
 * @blog https://mengfou.blog.csdn.net/
 */
public class ExecutorPool {
    private static final ExecutorService executorService = Executors.newFixedThreadPool(2);

    public static void execute(Runnable runnable) {
        executorService.execute(runnable);
    }
}
